using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Easislides
{
	public class FrmEditNotes : Form
	{
		private IContainer components = null;
		private Button BtnCancel;
		private Button BtnOK;
		private TextBox tbData;
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
            this.BtnCancel = new System.Windows.Forms.Button();
            this.BtnOK = new System.Windows.Forms.Button();
            this.tbData = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            // 
            // BtnCancel
            // 
            this.BtnCancel.Location = new System.Drawing.Point(156, 236);
            this.BtnCancel.Name = "BtnCancel";
            this.BtnCancel.Size = new System.Drawing.Size(80, 24);
            this.BtnCancel.TabIndex = 5;
            this.BtnCancel.Text = "Cancel";
            this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
            // 
            // BtnOK
            // 
            this.BtnOK.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.BtnOK.Location = new System.Drawing.Point(60, 236);
            this.BtnOK.Name = "BtnOK";
            this.BtnOK.Size = new System.Drawing.Size(80, 24);
            this.BtnOK.TabIndex = 4;
            this.BtnOK.Text = "OK";
            this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
            // 
            // tbData
            // 
            this.tbData.Location = new System.Drawing.Point(3, 2);
            this.tbData.Multiline = true;
            this.tbData.Name = "tbData";
            this.tbData.Size = new System.Drawing.Size(286, 228);
            this.tbData.TabIndex = 3;
            // 
            // FrmEditNotes
            // 
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Controls.Add(this.BtnCancel);
            this.Controls.Add(this.BtnOK);
            this.Controls.Add(this.tbData);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FrmEditNotes";
            this.ShowIcon = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Edit";
            this.TopMost = true;
            this.Load += new System.EventHandler(this.FrmEditNotes_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

		}
		public FrmEditNotes()
		{
			this.InitializeComponent();
		}
		private void FrmEditNotes_Load(object sender, EventArgs e)
		{
            this.BtnOK.DialogResult = DialogResult.OK;
            this.BtnCancel.DialogResult = DialogResult.Cancel;
			this.Text = gf.EditNotesHeading;
			this.tbData.Text = gf.EditNotes;
			if (this.tbData.Text != "")
			{
				this.tbData.SelectionStart = 0;
				this.tbData.SelectionLength = 0;
			}
		}
		private void BtnOK_Click(object sender, EventArgs e)
		{
			gf.EditNotes = this.tbData.Text;
		}

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            base.Close();
        }
	}
}
